<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../js/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
       <h1>变量={{info}}</h1>

       <h1>变量={{info | high}}</h1>
       <p :msg="info | high"> 用到了属性 </p>
    </div>
</body>
<script>
//全局定义过滤器
Vue.filter('high',function(v){
   return v.toUpperCase();
});

var vm = new Vue({
    el: "#app",
    data: {
       info:'chat G P T' 
    }
});

</script>
</html>